Optimal. Leaf size=204 \[ d^2 x \left (a+b \text{sech}^{-1}(c x)\right )+\frac{2}{3} d e x^3 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{5} e^2 x^5 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{b \sqrt{\frac{1}{c x+1}} \sqrt{c x+1} \left (120 c^4 d^2+40 c^2 d e+9 e^2\right ) \sin ^{-1}(c x)}{120 c^5}-\frac{b e x \sqrt{\frac{1}{c x+1}} \sqrt{c x+1} \sqrt{1-c^2 x^2} \left (40 c^2 d+9 e\right )}{120 c^4}-\frac{b e^2 x^3 \sqrt{\frac{1}{c x+1}} \sqrt{c x+1} \sqrt{1-c^2 x^2}}{20 c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.126856, antiderivative size = 204, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 6, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {194, 6291, 12, 1159, 388, 216} \[ d^2 x \left (a+b \text{sech}^{-1}(c x)\right )+\frac{2}{3} d e x^3 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{5} e^2 x^5 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{b \sqrt{\frac{1}{c x+1}} \sqrt{c x+1} \left (120 c^4 d^2+40 c^2 d e+9 e^2\right ) \sin ^{-1}(c x)}{120 c^5}-\frac{b e x \sqrt{\frac{1}{c x+1}} \sqrt{c x+1} \sqrt{1-c^2 x^2} \left (40 c^2 d+9 e\right )}{120 c^4}-\frac{b e^2 x^3 \sqrt{\frac{1}{c x+1}} \sqrt{c x+1} \sqrt{1-c^2 x^2}}{20 c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 194
Rule 6291
Rule 12
Rule 1159
Rule 388
Rule 216
Rubi steps
\begin{align*} \int \left (d+e x^2\right )^2 \left (a+b \text{sech}^{-1}(c x)\right ) \, dx &=d^2 x \left (a+b \text{sech}^{-1}(c x)\right )+\frac{2}{3} d e x^3 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{5} e^2 x^5 \left (a+b \text{sech}^{-1}(c x)\right )+\left (b \sqrt{\frac{1}{1+c x}} \sqrt{1+c x}\right ) \int \frac{15 d^2+10 d e x^2+3 e^2 x^4}{15 \sqrt{1-c^2 x^2}} \, dx\\ &=d^2 x \left (a+b \text{sech}^{-1}(c x)\right )+\frac{2}{3} d e x^3 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{5} e^2 x^5 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{15} \left (b \sqrt{\frac{1}{1+c x}} \sqrt{1+c x}\right ) \int \frac{15 d^2+10 d e x^2+3 e^2 x^4}{\sqrt{1-c^2 x^2}} \, dx\\ &=-\frac{b e^2 x^3 \sqrt{\frac{1}{1+c x}} \sqrt{1+c x} \sqrt{1-c^2 x^2}}{20 c^2}+d^2 x \left (a+b \text{sech}^{-1}(c x)\right )+\frac{2}{3} d e x^3 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{5} e^2 x^5 \left (a+b \text{sech}^{-1}(c x)\right )-\frac{\left (b \sqrt{\frac{1}{1+c x}} \sqrt{1+c x}\right ) \int \frac{-60 c^2 d^2-e \left (40 c^2 d+9 e\right ) x^2}{\sqrt{1-c^2 x^2}} \, dx}{60 c^2}\\ &=-\frac{b e \left (40 c^2 d+9 e\right ) x \sqrt{\frac{1}{1+c x}} \sqrt{1+c x} \sqrt{1-c^2 x^2}}{120 c^4}-\frac{b e^2 x^3 \sqrt{\frac{1}{1+c x}} \sqrt{1+c x} \sqrt{1-c^2 x^2}}{20 c^2}+d^2 x \left (a+b \text{sech}^{-1}(c x)\right )+\frac{2}{3} d e x^3 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{5} e^2 x^5 \left (a+b \text{sech}^{-1}(c x)\right )-\frac{\left (b \left (-120 c^4 d^2-e \left (40 c^2 d+9 e\right )\right ) \sqrt{\frac{1}{1+c x}} \sqrt{1+c x}\right ) \int \frac{1}{\sqrt{1-c^2 x^2}} \, dx}{120 c^4}\\ &=-\frac{b e \left (40 c^2 d+9 e\right ) x \sqrt{\frac{1}{1+c x}} \sqrt{1+c x} \sqrt{1-c^2 x^2}}{120 c^4}-\frac{b e^2 x^3 \sqrt{\frac{1}{1+c x}} \sqrt{1+c x} \sqrt{1-c^2 x^2}}{20 c^2}+d^2 x \left (a+b \text{sech}^{-1}(c x)\right )+\frac{2}{3} d e x^3 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{1}{5} e^2 x^5 \left (a+b \text{sech}^{-1}(c x)\right )+\frac{b \left (120 c^4 d^2+40 c^2 d e+9 e^2\right ) \sqrt{\frac{1}{1+c x}} \sqrt{1+c x} \sin ^{-1}(c x)}{120 c^5}\\ \end{align*}
Mathematica [C] time = 0.27851, size = 174, normalized size = 0.85 \[ \frac{8 a c^5 x \left (15 d^2+10 d e x^2+3 e^2 x^4\right )+8 b c^5 x \text{sech}^{-1}(c x) \left (15 d^2+10 d e x^2+3 e^2 x^4\right )+i b \left (120 c^4 d^2+40 c^2 d e+9 e^2\right ) \log \left (2 \sqrt{\frac{1-c x}{c x+1}} (c x+1)-2 i c x\right )-b c e x \sqrt{\frac{1-c x}{c x+1}} (c x+1) \left (c^2 \left (40 d+6 e x^2\right )+9 e\right )}{120 c^5} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.178, size = 228, normalized size = 1.1 \begin{align*}{\frac{1}{c} \left ({\frac{a}{{c}^{4}} \left ({\frac{{e}^{2}{c}^{5}{x}^{5}}{5}}+{\frac{2\,{c}^{5}de{x}^{3}}{3}}+x{c}^{5}{d}^{2} \right ) }+{\frac{b}{{c}^{4}} \left ({\frac{{\rm arcsech} \left (cx\right ){e}^{2}{c}^{5}{x}^{5}}{5}}+{\frac{2\,{\rm arcsech} \left (cx\right ){c}^{5}{x}^{3}de}{3}}+{\rm arcsech} \left (cx\right ){c}^{5}x{d}^{2}+{\frac{cx}{120}\sqrt{-{\frac{cx-1}{cx}}}\sqrt{{\frac{cx+1}{cx}}} \left ( 120\,{d}^{2}{c}^{4}\arcsin \left ( cx \right ) -6\,{e}^{2}{c}^{3}{x}^{3}\sqrt{-{c}^{2}{x}^{2}+1}-40\,{c}^{3}dex\sqrt{-{c}^{2}{x}^{2}+1}+40\,{c}^{2}de\arcsin \left ( cx \right ) -9\,{e}^{2}cx\sqrt{-{c}^{2}{x}^{2}+1}+9\,{e}^{2}\arcsin \left ( cx \right ) \right ){\frac{1}{\sqrt{-{c}^{2}{x}^{2}+1}}}} \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.49882, size = 302, normalized size = 1.48 \begin{align*} \frac{1}{5} \, a e^{2} x^{5} + \frac{2}{3} \, a d e x^{3} + \frac{1}{3} \,{\left (2 \, x^{3} \operatorname{arsech}\left (c x\right ) - \frac{\frac{\sqrt{\frac{1}{c^{2} x^{2}} - 1}}{c^{2}{\left (\frac{1}{c^{2} x^{2}} - 1\right )} + c^{2}} + \frac{\arctan \left (\sqrt{\frac{1}{c^{2} x^{2}} - 1}\right )}{c^{2}}}{c}\right )} b d e + \frac{1}{40} \,{\left (8 \, x^{5} \operatorname{arsech}\left (c x\right ) - \frac{\frac{3 \,{\left (\frac{1}{c^{2} x^{2}} - 1\right )}^{\frac{3}{2}} + 5 \, \sqrt{\frac{1}{c^{2} x^{2}} - 1}}{c^{4}{\left (\frac{1}{c^{2} x^{2}} - 1\right )}^{2} + 2 \, c^{4}{\left (\frac{1}{c^{2} x^{2}} - 1\right )} + c^{4}} + \frac{3 \, \arctan \left (\sqrt{\frac{1}{c^{2} x^{2}} - 1}\right )}{c^{4}}}{c}\right )} b e^{2} + a d^{2} x + \frac{{\left (c x \operatorname{arsech}\left (c x\right ) - \arctan \left (\sqrt{\frac{1}{c^{2} x^{2}} - 1}\right )\right )} b d^{2}}{c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 3.00414, size = 679, normalized size = 3.33 \begin{align*} \frac{24 \, a c^{5} e^{2} x^{5} + 80 \, a c^{5} d e x^{3} + 120 \, a c^{5} d^{2} x - 2 \,{\left (120 \, b c^{4} d^{2} + 40 \, b c^{2} d e + 9 \, b e^{2}\right )} \arctan \left (\frac{c x \sqrt{-\frac{c^{2} x^{2} - 1}{c^{2} x^{2}}} - 1}{c x}\right ) - 8 \,{\left (15 \, b c^{5} d^{2} + 10 \, b c^{5} d e + 3 \, b c^{5} e^{2}\right )} \log \left (\frac{c x \sqrt{-\frac{c^{2} x^{2} - 1}{c^{2} x^{2}}} - 1}{x}\right ) + 8 \,{\left (3 \, b c^{5} e^{2} x^{5} + 10 \, b c^{5} d e x^{3} + 15 \, b c^{5} d^{2} x - 15 \, b c^{5} d^{2} - 10 \, b c^{5} d e - 3 \, b c^{5} e^{2}\right )} \log \left (\frac{c x \sqrt{-\frac{c^{2} x^{2} - 1}{c^{2} x^{2}}} + 1}{c x}\right ) -{\left (6 \, b c^{4} e^{2} x^{4} +{\left (40 \, b c^{4} d e + 9 \, b c^{2} e^{2}\right )} x^{2}\right )} \sqrt{-\frac{c^{2} x^{2} - 1}{c^{2} x^{2}}}}{120 \, c^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \operatorname{asech}{\left (c x \right )}\right ) \left (d + e x^{2}\right )^{2}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (e x^{2} + d\right )}^{2}{\left (b \operatorname{arsech}\left (c x\right ) + a\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]